"""



"""


class Student:
    # 类属性
    name = 'xiao7'
    age = 7


s = Student()
print(type(s))
print(s)

a = s.age
print(a)

s.age = 18  # 对象属性 现在自己空间找 再去 类模型中找


class Empty:
    pass


e = Empty()

print(type(Empty()))
print(e)

print('*' * 40)


class Phone:
    # __XXX__ 的方法称为魔术方法
    def __init__(self):
        pass

    brand = "Huawei"
    price = 4999
    type = 'Honor 20'

    def call(self):
        print('call')

    @classmethod
    def test(cls):
        print(cls)
        print('I am a classmethod')

    @staticmethod
    def staticTest():
        print('static Method')


p = Phone()
a = p.test()
p.call()
print('a  : ', a)

Phone.test()
# Phone.call() # 报错

print('#' * 90)
Phone.staticTest()
